package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Platformactivityrecod implements Serializable {
    private Integer parid;

    private Integer fid;

    private Integer atid;

    private Date pastart;

    private Date paend;

    private Integer pacurrentprofit;

    private Integer patotalprofit;

    private String paimage;

    private Activitytype activitytype;

    public Activitytype getActivitytype() {
        return activitytype;
    }

    public void setActivitytype(Activitytype activitytype) {
        this.activitytype = activitytype;
    }

    private static final long serialVersionUID = 1L;

    public Integer getParid() {
        return parid;
    }

    public void setParid(Integer parid) {
        this.parid = parid;
    }

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public Integer getAtid() {
        return atid;
    }

    public void setAtid(Integer atid) {
        this.atid = atid;
    }

    public Date getPastart() {
        return pastart;
    }

    public void setPastart(Date pastart) {
        this.pastart = pastart;
    }

    public Date getPaend() {
        return paend;
    }

    public void setPaend(Date paend) {
        this.paend = paend;
    }

    public Integer getPacurrentprofit() {
        return pacurrentprofit;
    }

    public void setPacurrentprofit(Integer pacurrentprofit) {
        this.pacurrentprofit = pacurrentprofit;
    }

    public Integer getPatotalprofit() {
        return patotalprofit;
    }

    public void setPatotalprofit(Integer patotalprofit) {
        this.patotalprofit = patotalprofit;
    }

    public String getPaimage() {
        return paimage;
    }

    public void setPaimage(String paimage) {
        this.paimage = paimage;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Platformactivityrecod other = (Platformactivityrecod) that;
        return (this.getParid() == null ? other.getParid() == null : this.getParid().equals(other.getParid()))
            && (this.getFid() == null ? other.getFid() == null : this.getFid().equals(other.getFid()))
            && (this.getAtid() == null ? other.getAtid() == null : this.getAtid().equals(other.getAtid()))
            && (this.getPastart() == null ? other.getPastart() == null : this.getPastart().equals(other.getPastart()))
            && (this.getPaend() == null ? other.getPaend() == null : this.getPaend().equals(other.getPaend()))
            && (this.getPacurrentprofit() == null ? other.getPacurrentprofit() == null : this.getPacurrentprofit().equals(other.getPacurrentprofit()))
            && (this.getPatotalprofit() == null ? other.getPatotalprofit() == null : this.getPatotalprofit().equals(other.getPatotalprofit()))
            && (this.getPaimage() == null ? other.getPaimage() == null : this.getPaimage().equals(other.getPaimage()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getParid() == null) ? 0 : getParid().hashCode());
        result = prime * result + ((getFid() == null) ? 0 : getFid().hashCode());
        result = prime * result + ((getAtid() == null) ? 0 : getAtid().hashCode());
        result = prime * result + ((getPastart() == null) ? 0 : getPastart().hashCode());
        result = prime * result + ((getPaend() == null) ? 0 : getPaend().hashCode());
        result = prime * result + ((getPacurrentprofit() == null) ? 0 : getPacurrentprofit().hashCode());
        result = prime * result + ((getPatotalprofit() == null) ? 0 : getPatotalprofit().hashCode());
        result = prime * result + ((getPaimage() == null) ? 0 : getPaimage().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", parid=").append(parid);
        sb.append(", fid=").append(fid);
        sb.append(", atid=").append(atid);
        sb.append(", pastart=").append(pastart);
        sb.append(", paend=").append(paend);
        sb.append(", pacurrentprofit=").append(pacurrentprofit);
        sb.append(", patotalprofit=").append(patotalprofit);
        sb.append(", paimage=").append(paimage);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}